﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Teigha.Core;

namespace Teigha.TD
{
	public class OdAbstractViewPE : OdRxObject
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdAbstractViewPE(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdAbstractViewPE_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdAbstractViewPE obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdAbstractViewPE()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							TD_DbPINVOKE.delete_OdAbstractViewPE(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public new static OdAbstractViewPE cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdAbstractViewPE_cast(OdRxObject.getCPtr(pObj));
			OdAbstractViewPE result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdAbstractViewPE)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdAbstractViewPE)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdAbstractViewPE)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdAbstractViewPE_desc(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdAbstractViewPE_isA(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdAbstractViewPE_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdAbstractViewPE createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdAbstractViewPE_createObject();
			OdAbstractViewPE result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdAbstractViewPE)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdAbstractViewPE)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdAbstractViewPE)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGePoint2d lowerLeftCorner(OdRxObject pViewport)
		{
			OdGePoint2d result = new OdGePoint2d(TD_DbPINVOKE.OdAbstractViewPE_lowerLeftCorner(this.swigCPtr, OdRxObject.getCPtr(pViewport)), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGePoint2d upperRightCorner(OdRxObject pViewport)
		{
			OdGePoint2d result = new OdGePoint2d(TD_DbPINVOKE.OdAbstractViewPE_upperRightCorner(this.swigCPtr, OdRxObject.getCPtr(pViewport)), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setViewport(OdRxObject pViewport, OdGePoint2d lowerLeft, OdGePoint2d upperRight)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setViewport(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGePoint2d.getCPtr(lowerLeft), OdGePoint2d.getCPtr(upperRight));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool hasViewport(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_hasViewport(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGePoint3d target(OdRxObject pViewport)
		{
			OdGePoint3d result = new OdGePoint3d(TD_DbPINVOKE.OdAbstractViewPE_target(this.swigCPtr, OdRxObject.getCPtr(pViewport)), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGeVector3d direction(OdRxObject pViewport)
		{
			OdGeVector3d result = new OdGeVector3d(TD_DbPINVOKE.OdAbstractViewPE_direction(this.swigCPtr, OdRxObject.getCPtr(pViewport)), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGeVector3d upVector(OdRxObject pViewport)
		{
			OdGeVector3d result = new OdGeVector3d(TD_DbPINVOKE.OdAbstractViewPE_upVector(this.swigCPtr, OdRxObject.getCPtr(pViewport)), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual double fieldWidth(OdRxObject pViewport)
		{
			double result = TD_DbPINVOKE.OdAbstractViewPE_fieldWidth(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual double fieldHeight(OdRxObject pViewport)
		{
			double result = TD_DbPINVOKE.OdAbstractViewPE_fieldHeight(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isPerspective(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_isPerspective(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGeVector2d viewOffset(OdRxObject pViewport)
		{
			OdGeVector2d result = new OdGeVector2d(TD_DbPINVOKE.OdAbstractViewPE_viewOffset(this.swigCPtr, OdRxObject.getCPtr(pViewport)), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool hasViewOffset(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_hasViewOffset(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual double viewTwist(OdRxObject pViewport)
		{
			double result = TD_DbPINVOKE.OdAbstractViewPE_viewTwist(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setView(OdRxObject pViewport, OdGePoint3d target, OdGeVector3d direction, OdGeVector3d upVector, double fieldWidth, double fieldHeight, bool isPerspective, OdGeVector2d viewOffset)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setView__SWIG_0(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGePoint3d.getCPtr(target), OdGeVector3d.getCPtr(direction), OdGeVector3d.getCPtr(upVector), fieldWidth, fieldHeight, isPerspective, OdGeVector2d.getCPtr(viewOffset).Handle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setView(OdRxObject pViewport, OdGePoint3d target, OdGeVector3d direction, OdGeVector3d upVector, double fieldWidth, double fieldHeight, bool isPerspective)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setView__SWIG_1(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGePoint3d.getCPtr(target), OdGeVector3d.getCPtr(direction), OdGeVector3d.getCPtr(upVector), fieldWidth, fieldHeight, isPerspective);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setLensLength(OdRxObject pViewport, double lensLength)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setLensLength(this.swigCPtr, OdRxObject.getCPtr(pViewport), lensLength);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double lensLength(OdRxObject pViewport)
		{
			double result = TD_DbPINVOKE.OdAbstractViewPE_lensLength(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isFrontClipOn(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_isFrontClipOn(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setFrontClipOn(OdRxObject pViewport, bool frontClip)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setFrontClipOn(this.swigCPtr, OdRxObject.getCPtr(pViewport), frontClip);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool isBackClipOn(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_isBackClipOn(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setBackClipOn(OdRxObject pViewport, bool backClip)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setBackClipOn(this.swigCPtr, OdRxObject.getCPtr(pViewport), backClip);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool isFrontClipAtEyeOn(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_isFrontClipAtEyeOn(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setFrontClipAtEyeOn(OdRxObject pViewport, bool frontClipAtEye)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setFrontClipAtEyeOn(this.swigCPtr, OdRxObject.getCPtr(pViewport), frontClipAtEye);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double frontClipDistance(OdRxObject pViewport)
		{
			double result = TD_DbPINVOKE.OdAbstractViewPE_frontClipDistance(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setFrontClipDistance(OdRxObject pViewport, double frontClipDistance)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setFrontClipDistance(this.swigCPtr, OdRxObject.getCPtr(pViewport), frontClipDistance);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double backClipDistance(OdRxObject pViewport)
		{
			double result = TD_DbPINVOKE.OdAbstractViewPE_backClipDistance(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setBackClipDistance(OdRxObject pViewport, double backClipDistance)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setBackClipDistance(this.swigCPtr, OdRxObject.getCPtr(pViewport), backClipDistance);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setRenderMode(OdRxObject pViewport, RenderMode renderMode)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setRenderMode(this.swigCPtr, OdRxObject.getCPtr(pViewport), (int)renderMode);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual RenderMode renderMode(OdRxObject pViewport)
		{
			RenderMode result = (RenderMode)TD_DbPINVOKE.OdAbstractViewPE_renderMode(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setVisualStyle(OdRxObject pViewport, OdDbStub visualStyleId)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setVisualStyle(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdDbStub.getCPtr(visualStyleId));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdDbStub visualStyle(OdRxObject pViewport)
		{
			IntPtr intPtr = TD_DbPINVOKE.OdAbstractViewPE_visualStyle(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			OdDbStub result = (intPtr == IntPtr.Zero) ? null : new OdDbStub(intPtr, false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void frozenLayers(OdRxObject pViewport, OdDbStubPtrArray frozenLayers)
		{
			TD_DbPINVOKE.OdAbstractViewPE_frozenLayers(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdDbStubPtrArray.getCPtr(frozenLayers));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setFrozenLayers(OdRxObject pViewport, OdDbStubPtrArray frozenLayers)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setFrozenLayers(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdDbStubPtrArray.getCPtr(frozenLayers));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setView(OdRxObject pDestinationView, OdRxObject pSourceView)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setView__SWIG_2(this.swigCPtr, OdRxObject.getCPtr(pDestinationView), OdRxObject.getCPtr(pSourceView));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool hasUcs(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_hasUcs(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OrthographicView orthoUcs(OdRxObject pViewport, OdRxObject pDb)
		{
			OrthographicView result = (OrthographicView)TD_DbPINVOKE.OdAbstractViewPE_orthoUcs__SWIG_0(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdRxObject.getCPtr(pDb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OrthographicView orthoUcs(OdRxObject pViewport)
		{
			OrthographicView result = (OrthographicView)TD_DbPINVOKE.OdAbstractViewPE_orthoUcs__SWIG_1(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool setUcs(OdRxObject pViewport, OrthographicView orthoUcs, OdRxObject pDb)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_setUcs__SWIG_0(this.swigCPtr, OdRxObject.getCPtr(pViewport), (int)orthoUcs, OdRxObject.getCPtr(pDb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool setUcs(OdRxObject pViewport, OrthographicView orthoUcs)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_setUcs__SWIG_1(this.swigCPtr, OdRxObject.getCPtr(pViewport), (int)orthoUcs);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbStub ucsName(OdRxObject pViewport)
		{
			IntPtr intPtr = TD_DbPINVOKE.OdAbstractViewPE_ucsName(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			OdDbStub result = (intPtr == IntPtr.Zero) ? null : new OdDbStub(intPtr, false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool setUcs(OdRxObject pViewport, OdDbStub ucsId)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_setUcs__SWIG_2(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdDbStub.getCPtr(ucsId));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void getUcs(OdRxObject pViewport, OdGePoint3d origin, OdGeVector3d xAxis, OdGeVector3d yAxis)
		{
			TD_DbPINVOKE.OdAbstractViewPE_getUcs(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(xAxis), OdGeVector3d.getCPtr(yAxis));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setUcs(OdRxObject pViewport, OdGePoint3d origin, OdGeVector3d xAxis, OdGeVector3d yAxis)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setUcs__SWIG_3(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(xAxis), OdGeVector3d.getCPtr(yAxis));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double elevation(OdRxObject pViewport)
		{
			double result = TD_DbPINVOKE.OdAbstractViewPE_elevation(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setElevation(OdRxObject pViewport, double elevation)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setElevation(this.swigCPtr, OdRxObject.getCPtr(pViewport), elevation);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setUcs(OdRxObject pDestinationView, OdRxObject pSourceView)
		{
			TD_DbPINVOKE.OdAbstractViewPE_setUcs__SWIG_4(this.swigCPtr, OdRxObject.getCPtr(pDestinationView), OdRxObject.getCPtr(pSourceView));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool viewExtents(OdRxObject pViewport, OdGeBoundBlock3d extents)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_viewExtents(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGeBoundBlock3d.getCPtr(extents));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool plotExtents(OdRxObject pViewport, OdGeBoundBlock3d extents, bool bExtendOnly, bool bExtentsValid, OdGeMatrix3d pWorldToEye)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_plotExtents__SWIG_0(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGeBoundBlock3d.getCPtr(extents), bExtendOnly, bExtentsValid, OdGeMatrix3d.getCPtr(pWorldToEye));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool plotExtents(OdRxObject pViewport, OdGeBoundBlock3d extents, bool bExtendOnly, bool bExtentsValid)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_plotExtents__SWIG_1(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGeBoundBlock3d.getCPtr(extents), bExtendOnly, bExtentsValid);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool plotExtents(OdRxObject pViewport, OdGeBoundBlock3d extents, bool bExtendOnly)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_plotExtents__SWIG_2(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGeBoundBlock3d.getCPtr(extents), bExtendOnly);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool plotExtents(OdRxObject pViewport, OdGeBoundBlock3d extents)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_plotExtents__SWIG_3(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGeBoundBlock3d.getCPtr(extents));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool zoomExtents(OdRxObject pViewport, OdGeBoundBlock3d pExtents, double extCoef)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_zoomExtents__SWIG_0(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGeBoundBlock3d.getCPtr(pExtents), extCoef);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool zoomExtents(OdRxObject pViewport, OdGeBoundBlock3d pExtents)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_zoomExtents__SWIG_1(this.swigCPtr, OdRxObject.getCPtr(pViewport), OdGeBoundBlock3d.getCPtr(pExtents));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool zoomExtents(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_zoomExtents__SWIG_2(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGeMatrix3d worldToEye(OdRxObject pViewport)
		{
			OdGeMatrix3d result = new OdGeMatrix3d(TD_DbPINVOKE.OdAbstractViewPE_worldToEye(this.swigCPtr, OdRxObject.getCPtr(pViewport)), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGeMatrix3d eyeToWorld(OdRxObject pViewport)
		{
			OdGeMatrix3d result = new OdGeMatrix3d(TD_DbPINVOKE.OdAbstractViewPE_eyeToWorld(this.swigCPtr, OdRxObject.getCPtr(pViewport)), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isPlotting(OdRxObject pViewport)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_isPlotting(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdRxObject plotDataObject(OdRxObject pViewport, bool bOpenForWrite)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdAbstractViewPE_plotDataObject__SWIG_0(this.swigCPtr, OdRxObject.getCPtr(pViewport), bOpenForWrite);
			OdRxObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdRxObject plotDataObject(OdRxObject pViewport)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdAbstractViewPE_plotDataObject__SWIG_1(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			OdRxObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool applyPlotSettings(OdRxObject pDestinationView, OdRxObject pSourceView)
		{
			bool result = TD_DbPINVOKE.OdAbstractViewPE_applyPlotSettings(this.swigCPtr, OdRxObject.getCPtr(pDestinationView), OdRxObject.getCPtr(pSourceView));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbStub annotationScale(OdRxObject pViewport)
		{
			IntPtr intPtr = TD_DbPINVOKE.OdAbstractViewPE_annotationScale(this.swigCPtr, OdRxObject.getCPtr(pViewport));
			OdDbStub result = (intPtr == IntPtr.Zero) ? null : new OdDbStub(intPtr, false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private object locker = new object();

		private HandleRef swigCPtr;
	}
}
